<template>
    <div >
        <el-table
                :data="tableData"
                border
                style="width: 89%">
            <el-table-column
                    fixed
                    prop="id"
                    label="编号"
                    width="60">
            </el-table-column>

            <el-table-column
                    prop="name"
                    label="姓名"
                    width="112">
            </el-table-column>
            <el-table-column
                    prop="college"
                    label="学院"
                    width="100">
            </el-table-column>

            <el-table-column
                    prop="category"
                    label="获奖类别"
                    width="200">
            </el-table-column>

            <el-table-column
                    prop="award"
                    label="比赛名称"
                    width="250">
            </el-table-column>
            <el-table-column
                    prop="ranking"
                    label="工号"
                    width="100">
            </el-table-column>
            <el-table-column
                    prop="charge"
                    label="完成人"
                    width="120">
            </el-table-column>

            <el-table-column
                    prop="achievement"
                    label="基本绩点"
                    width="120">
            </el-table-column>

            <el-table-column
                    prop="gpa"
                    label="获得绩点"
                    width="100">
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                tableData:'',
            };
        },
        methods: {
            resetForm(formName) {
                this.$refs[formName].resetFields();
            }
        },
        created(){
            const _this = this
            this.$axios.get('/ins/findByName/'+_this.$route.query.name).then(function (resp){
                console.log(resp)
                _this.tableData  = resp.data
            })
            console.log( _this.tableData)

        }
    }
</script>